﻿// 麻省理工学院许可证
//
// 版权所有 (c) 2023-2025 缄默 联系电话/18521355630 
//
// 特此免费授予获得本软件的任何人以处理本软件的权利，但须遵守以下条件：在所有副本或重要部分的软件中必须包括上述版权声明和本许可声明。
//
// 软件按“原样”提供，不提供任何形式的明示或暗示的保证，包括但不限于对适销性、适用性和非侵权的保证。
// 在任何情况下，作者或版权持有人均不对任何索赔、损害或其他责任负责，无论是因合同、侵权或其他方式引起的，与软件或其使用或其他交易有关。

namespace LvcChong
{
    public class UltraLanguageHelper
    {
        public static void InitialInfragisticLanguage()
        {
            // Assembly Resource Strings Reference 对照表
            // https://www.infragistics.com/help/winforms/win-assembly-resource-strings

            Infragistics.Shared.ResourceCustomizer rc = Infragistics.Win.Resources.Customizer;
            rc.SetCustomizedString("TabManagerNewTabButton", "新建标签页");
            rc.SetCustomizedString("TabManagerCloseButton", "关闭");
            rc.SetCustomizedString("TabManagerScrollFirst", "第一页");
            rc.SetCustomizedString("TabManagerScrollLast", "最后一页");
            rc.SetCustomizedString("TabManagerScrollNext", "后页");
            rc.SetCustomizedString("TabManagerScrollNextPage", "后页");
            rc.SetCustomizedString("TabManagerScrollPrevious", "前页");
            rc.SetCustomizedString("TabManagerScrollPreviousPage", "前页");
            rc.SetCustomizedString("TabManagerTabListButton", "打开文件");


            rc = Infragistics.Win.Misc.Resources.Customizer;
            rc.SetCustomizedString("Validate_ErrorNotificationMessageHeader", "数据验证失败，当前存在以下错误信息：");

            #region//汉化grid
            rc = Infragistics.Win.UltraWinGrid.Resources.Customizer;
            rc.SetCustomizedString("FilterDialogTitle", "自定义过滤条件");
            rc.SetCustomizedString("FilterDialogApplyLabelText", "过滤必须满足以下条件中的{0}");
            rc.SetCustomizedString("FilterDialogAllComboItem", "全部条件");
            rc.SetCustomizedString("FilterDialogAnyComboItem", "任何一个条件");
            rc.SetCustomizedString("FilterDialogConditionAddButtonText", "添加");
            rc.SetCustomizedString("FilterDialogConditionDeleteButtonText", "删除");
            rc.SetCustomizedString("RowFilterDropDownAllItem", "所有");
            rc.SetCustomizedString("RowFilterDropDownBlanksItem", "空");
            rc.SetCustomizedString("RowFilterDropDownCustomItem", "自定义");
            rc.SetCustomizedString("RowFilterDropDownNonBlanksItem", "非空");
            rc.SetCustomizedString("RowFilterDropDownAllItem", "所有");

            rc.SetCustomizedString("FilterDialogOkButtonText", "确定(&O)");
            rc.SetCustomizedString("FilterDialogCancelButtonText", "取消(&C)");
            rc.SetCustomizedString("FilterDialogOkButtonNoFiltersText", "不过滤");

            rc.SetCustomizedString("RowFilterDropDownEquals", "等于");
            rc.SetCustomizedString("RowFilterDropDownNotEquals", "不等于");
            rc.SetCustomizedString("RowFilterDropDownLessThan", "小于");
            rc.SetCustomizedString("RowFilterDropDownLessThanOrEqualTo", "小于等于");
            rc.SetCustomizedString("RowFilterDropDownGreaterThan", "大于");
            rc.SetCustomizedString("RowFilterDropDownGreaterThanOrEqualTo", "大于等于");
            rc.SetCustomizedString("RowFilterDropDownMatch", "自定义规则表达式");
            rc.SetCustomizedString("RowFilterDropDownLike", "模糊查找");
            rc.SetCustomizedString("RowFilterDialogBlanksItem", "空白");
            rc.SetCustomizedString("RowFilterDialogDBNullItem", "无值");
            rc.SetCustomizedString("RowFilterDialogEmptyTextItem", "空文本");
            rc.SetCustomizedString("RowFilterDropDown_Operator_Equals", "等于");
            rc.SetCustomizedString("RowFilterDropDown_Operator_NotEquals", "不等于");
            rc.SetCustomizedString("RowFilterDropDown_Operator_LessThan", "小于");
            rc.SetCustomizedString("RowFilterDropDown_Operator_LessThanOrEqualTo", "小于等于");
            rc.SetCustomizedString("RowFilterDropDown_Operator_GreaterThan", "大于");
            rc.SetCustomizedString("RowFilterDropDown_Operator_GreaterThanOrEqualTo", "大于等于");

            rc.SetCustomizedString("RowFilterDropDown_Operator_Match", "匹配");
            rc.SetCustomizedString("RowFilterDropDown_Operator_Like", "相似");
            rc.SetCustomizedString("RowFilterDropDown_Operator_NotLike", "不相似");
            rc.SetCustomizedString("RowFilterDropDown_Operator_Contains", "包含");
            rc.SetCustomizedString("RowFilterDropDown_Operator_StartsWith", "起始于");
            rc.SetCustomizedString("RowFilterDropDown_Operator_EndsWith", "结束于");

            rc.SetCustomizedString("RowFilterDropDown_Operator_DoesNotStartWith", "非结束于");
            rc.SetCustomizedString("RowFilterDropDown_Operator_DoesNotEndWith", "非结束于");
            rc.SetCustomizedString("RowFilterDropDown_Operator_DoesNotContain", "不包含");
            rc.SetCustomizedString("RowFilterDropDown_Operator_DoesNotMatch", "不匹配");

            rc.SetCustomizedString("RowFilterPatternCaption", "无效查找模式");
            rc.SetCustomizedString("RowFilterPatternError", "错误的解析模式{0}. 请输入一个有效的表达式");
            rc.SetCustomizedString("RowFilterPatternException", "无效查找模式{0}");
            rc.SetCustomizedString("RowFilterRegexError", "无效的规则表达式{0}.请输入一个有效的表达式");
            rc.SetCustomizedString("RowFilterRegexErrorCaption", "无效规则表达式");
            rc.SetCustomizedString("RowFilterRegexException", "无效规则表达式{0}");

            rc.SetCustomizedString("LDR_SelectSummaries", "选择聚合函数");
            rc.SetCustomizedString("SummaryDialogAverage", "平均");
            rc.SetCustomizedString("SummaryDialogCount", "总数");
            rc.SetCustomizedString("SummaryDialogSum", "总合");
            rc.SetCustomizedString("SummaryDialogMinimum", "最小值");
            rc.SetCustomizedString("SummaryDialogMaximum", "最大值");
            rc.SetCustomizedString("SummaryDialog_Button_OK", "确定(&O)");
            rc.SetCustomizedString("SummaryDialog_Button_Cancel", "取消(&C)");
            rc.SetCustomizedString("SummaryDialogAverage_AccessibleDescription", "平均");
            rc.SetCustomizedString("SummaryTypeAverage", "平均");
            rc.SetCustomizedString("SummaryTypeCount", "总数");
            rc.SetCustomizedString("SummaryTypeCustom", "自定义");
            rc.SetCustomizedString("SummaryTypeMaximum", "最大值");
            rc.SetCustomizedString("SummaryTypeMinimum", "最小值");
            rc.SetCustomizedString("SummaryTypeSum", "总合");
            rc.SetCustomizedString("LDR_Layout_mask", "[caption] : [value] ([count]项)");
            rc.SetCustomizedString("GroupByBoxDefaultPrompt", "将需要分组的列拖入此处，不需要分组时将该列拖回原处即可");
            rc.SetCustomizedString("DeleteSingleRowPrompt", "确定要删除这行数据？");
            rc.SetCustomizedString("DeleteMultipleRowsPrompt", "确定要删除{0}行数据？");
            rc.SetCustomizedString("DeleteRowsMessageTitle", "删除行数据");
            rc.SetCustomizedString("DeleteSingleRowMessageTitle", "删除行数据");
            rc.SetCustomizedString("GroupByButtonToolTip", "点击后切换排序");

            rc.SetCustomizedString("DataErrorMessageTitle", "数据错误");
            rc.SetCustomizedString("SummaryFooterCaption_RootRows", "总数");

            rc.SetCustomizedString("ColumnChooserButtonToolTip", "点击这里选择显示列");
            rc.SetCustomizedString("ColumnChooserDialogCaption", "选择显示列");

            rc.SetCustomizedString("Async_Export_Status_Cancel_Button", "取消");
            rc.SetCustomizedString("Async_Export_Status_Complete_Plural", "导出完成！共导出{0}行。");
            rc.SetCustomizedString("Async_Export_Status_Complete_Singular", "导出完成！共导出{0}行。");
            rc.SetCustomizedString("Async_Export_Status_InProgress_Plural", "正在将数据导出到{0}，共导出{1}行");
            rc.SetCustomizedString("Async_Export_Status_InProgress_Singular", "正在将数据导出到{0}，共导出{1}行");
            rc.SetCustomizedString("Async_Export_Status_Preparing", "正在计算导出数据并导出到{0}");
            rc.SetCustomizedString("Async_Export_Status_Waiting", "等待导出数据...");

            rc.SetCustomizedString("FilterClearButtonToolTip_FilterCell", "点击这里清除 {0} 的过滤规则.");
            rc.SetCustomizedString("FilterClearButtonToolTip_RowSelector", "点击这里清除所有过滤规则.");
            rc.SetCustomizedString("DataErrorCellUpdateUnableToUpdateValue", "数据无法更新。");
            rc.SetCustomizedString("ErrMSgEditorValNotValid", "数据格式不正确。");
            #endregion

            //#region//汉化打印对话框
            //rc = Infragistics.Win.Printing.Resources.Customizer;//Resources.Customizer;
            //rc.SetCustomizedString("FilterDialogApplyLabelText", "过滤条件是基于以下{0}条件:");
            //rc.SetCustomizedString("PrintPreview_DialogCaption", "打印预览");
            //rc.SetCustomizedString("PrintPreview_Tool_Print", "打印(&P)");
            //rc.SetCustomizedString("PrintPreview_Tool_ClosePreview", "关闭(&C)");
            //rc.SetCustomizedString("PrintPreview_Tool_ContextMenuPreviewZoom", "显示比例");
            //rc.SetCustomizedString("PrintPreview_Tool_Current_Page", "当前页");
            //rc.SetCustomizedString("PrintPreview_Tool_Exit", "退出(&X)");
            //rc.SetCustomizedString("PrintPreview_Tool_First_Page", "第一页");
            //rc.SetCustomizedString("PrintPreview_Tool_Go_To", "跳至");
            //rc.SetCustomizedString("PrintPreview_Tool_Last_Page", "最后一页");
            //rc.SetCustomizedString("PrintPreview_Tool_Next_Page", "下一页");
            //rc.SetCustomizedString("PrintPreview_Tool_Previous_Page", "前一页");
            //rc.SetCustomizedString("PrintPreview_Tool_Next_View", "下一视图(&N)");
            //rc.SetCustomizedString("PrintPreview_Tool_Previous_View", "前一视图(&P)");
            //rc.SetCustomizedString("PrintPreview_Tool_Hand_Tool", "手型工具(&H)");
            //rc.SetCustomizedString("PrintPreview_Tool_Page_Setup", "页面设置(&U)");
            //rc.SetCustomizedString("PrintPreview_Tool_Snapshot_Tool", "快照工具(&S)");
            //rc.SetCustomizedString("PrintPreview_Tool_View", "视图(&V)");
            //rc.SetCustomizedString("PrintPreview_Tool_Whole_Page", "合适页");
            //rc.SetCustomizedString("PrintPreview_Tool_Zoom", "缩放(&Z)");
            //rc.SetCustomizedString("PrintPreview_Tool_Zoom_In", "放大");

            //rc.SetCustomizedString("PrintPreview_Tool_Zoom_Out", "缩小");

            //rc.SetCustomizedString("PrintPreview_ToolCategory_Context_Menus", "上下文菜单");
            //rc.SetCustomizedString("PrintPreview_ToolCategory_File", "文件");
            //rc.SetCustomizedString("PrintPreview_ToolCategory_Menus", "菜单");
            //rc.SetCustomizedString("PrintPreview_ToolCategory_Tools", "工具栏");
            //rc.SetCustomizedString("PrintPreview_ToolCategory_View", "视图");
            //rc.SetCustomizedString("PrintPreview_ToolCategory_Zoom_Mode", "缩放模式");

            //rc.SetCustomizedString("PrintPreview_ToolTip_ClosePreview", "关闭");
            //rc.SetCustomizedString("PrintPreview_ToolTip_Zoom", "缩放");
            //rc.SetCustomizedString("StatusBar_Page_X_OF_X", "页:{0}/{1}");
            //rc.SetCustomizedString("CustomizeImg_ToolBar_MenuBar", "菜单");
            //rc.SetCustomizedString("CustomizeImg_ToolBar_Standard", "标准");
            //rc.SetCustomizedString("CustomizeImg_ToolBar_View", "视图");
            //rc.SetCustomizedString("PrintPreview_Tool_File", "文件(&F)");
            //rc.SetCustomizedString("PrintPreview_Tool_Tools", "工具(&T)");
            //rc.SetCustomizedString("PrintPreview_Tool_Dynamic_Zoom_Tool", "动态缩放工具(&D)");
            //rc.SetCustomizedString("PrintPreview_Tool_Zoom_Out_Tool", "缩小工具");
            //rc.SetCustomizedString("PrintPreview_Tool_Zoom_In_Tool", "放大工具");
            ////rc.SetCustomizedString("PrintPreview_Tool_Page_Layout","菜单");
            //rc.SetCustomizedString("PreviewRowColSelection_Cancel", "取消");
            //rc.SetCustomizedString("PreviewRowColSelection_SelectedPages", "{0} x {1} 页");
            //rc.SetCustomizedString("PreviewRowColSelection_Cancel", "取消");
            //rc.SetCustomizedString("PrintPreview_Tool_Page_Width", "页宽");
            //rc.SetCustomizedString("PrintPreview_ZoomListItem_MarginWidth", "文字宽度");
            //rc.SetCustomizedString("PrintPreview_ZoomListItem_PageWidth", "页宽");
            //rc.SetCustomizedString("PrintPreview_ZoomListItem_WholePage", "合适页");
            //rc.SetCustomizedString("PrintPreview_Tool_Page_Layout", "页面布局");
            //rc.SetCustomizedString("PrintPreview_Tool_Margin_Width", "文字宽度");
            //rc.SetCustomizedString("ContextMenuPreviewHand", "缩放视图");

            //rc.SetCustomizedString("PrintPreview_Tool_Reduce_Page_Thumbnails", "缩小");
            //rc.SetCustomizedString("PrintPreview_Tool_Show_Page_Numbers", "显示页号");
            //rc.SetCustomizedString("PrintPreview_Tool_ContextMenuThumbnail", "缩略图");
            //rc.SetCustomizedString("PrintPreview_Tool_Enlarge_Page_Thumbnails", "放大");
            //rc.SetCustomizedString("PrintPreview_Tool_Thumbnails", "缩略图");
            //rc.SetCustomizedString("PrintPreview_Tool_Continuous", "连续排序");
            ////说明
            //rc.SetCustomizedString("StatusBar_DynamicZoom_Instructions", "单击并拖动进行缩放操作");
            //rc.SetCustomizedString("StatusBar_Page_X_OF_X", "当前页: {0} / {1}");
            //rc.SetCustomizedString("StatusBar_SnapShot_Instructions", "单击并拖动,系统将选定矩型区域复制到剪帖板");
            //rc.SetCustomizedString("StatusBar_ZoomIn_Instructions", "单击并拖动,系统将放大选定矩型区域");
            //rc.SetCustomizedString("StatusBar_ZoomOut_Instructions", "单击并拖动,系统将缩小选定矩型区域");
            //rc.SetCustomizedString("StatusBar_Hand_Instructions", "单击并拖动以便显示更多内容");
            //#endregion

            #region//汉化工具栏
            //rc = Infragistics.Win.UltraWinToolbars.Resources.Customizer;
            //rc.SetCustomizedString("QuickAccessToolbarAboveRibbonCustomize", "显示快速访问工具栏在上方");
            //rc.SetCustomizedString("QuickAccessToolbarBelowRibbonCustomize", "显示快速访问工具栏在下方");
            //rc.SetCustomizedString("MinimizeRibbon", "最小化菜单");
            //rc.SetCustomizedString("QatQuickCustomizeHeader", "自定义快速访问工具栏");
            //rc.SetCustomizedString("QatQuickCustomizeToolTip", "自定义快速访问工具栏");

            //rc.SetCustomizedString("QuickAccessToolbarBelowRibbon", "显示快速访问工具栏在下方");
            //rc.SetCustomizedString("QuickAccessToolbarAboveRibbon", "显示快速访问工具栏在上方");
            //rc.SetCustomizedString("LockToolbars", "锁定工具栏");
            //rc.SetCustomizedString("Customize", "自定义");
            #endregion
        }
    }
}